<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <style type="text/css">


    </style>
</head>

<body>
<div th:fragment="resultsList" style="height: 100%">
    <h2 th:text="'时间: '+${seconds}+'s ; fakeTime:'+${fakeTime} "></h2>
    <div  id="results-block"
         style="float:left;width:48%;border:1px solid black">

        <table cellspacing="1" style=" border:1px solid black;border-right: 0px" id="a">
            <tbody>

            <div th:each="map : ${mapList}">
                <tr style="border: 0px solid black;width: 100%">

                    <td style="width: 20px;border:1px solid black;" th:text="${map.key}"></td>
                    <div style="" th:each="list : ${map.value}">
                        <td th:if="${list.carType} eq 'MANUAL'"
                            style="width: 30px;border:1px solid black;background:red"
                            th:text="${list.name}"></td>

                        <td th:if="${list.carType} ne 'MANUAL'" style="width: 30px;border:1px solid black;;"
                            th:text="${list.name}"></td>
                    </div>
                </tr>
            </div>
            </tbody>
        </table>
    </div>

    <div style="border:1px solid black;float:left;width:25% ;height: 100%">
        <div style="position:relative" th:each="leave : ${enters}">

            <div th:if="${leave.carType} eq 'MANUAL'" style="position:relative;;background: red"
                 th:text="${leave.name} +' ->'+${leave.etcAt}+ ' arriveAt:'+${leave.arriveAt}">
            </div>

            <div th:if="${leave.carType} ne 'MANUAL'" style="position:relative;"
                 th:text="${leave.name} +' ->'+${leave.etcAt}+ ' arriveAt:'+${leave.arriveAt}">
            </div>
        </div>
    </div>


    <div style="border:1px solid black;float:left;width:25%;height: 100%">
        <div style="position:relative" th:each="leave : ${leaves}">
            <div th:if="${leave.carType} eq 'MANUAL'" style="position:relative;background: red"
                 th:text="${leave.name} +'-> '+${leave.etcAt}+' duration:'+${leave.duration}"></div>
            <div th:if="${leave.carType} ne 'MANUAL'" style="position:relative;"
                 th:text="${leave.name} +'-> '+${leave.etcAt}+' duration:'+${leave.duration}">
            </div>
        </div>
    </div>
</div>

</body>
</html>